package com.ubireality.module.stage;

import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.OneToOne;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

import com.ubireality.module.basic.BaseEntity;
import com.ubireality.module.patronus.Patron;
import com.ubireality.module.player.User;

@Entity
public class GameStage extends BaseEntity {
	@OneToOne
	private User player;
	private String name;
	@Temporal(TemporalType.TIMESTAMP)
	private Date createdate;
	@OneToOne
	private Patron currentPatron;
	@OneToOne
	private StageDeclaration stageDeclaration;

	public User getPlayer() {
		return player;
	}

	public void setPlayer(User player) {
		this.player = player;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Date getCreatedate() {
		return createdate;
	}

	public void setCreatedate(Date createdate) {
		this.createdate = createdate;
	}

	public Patron getCurrentPatron() {
		return currentPatron;
	}

	public void setCurrentPatron(Patron currentPatron) {
		this.currentPatron = currentPatron;
	}

	public StageDeclaration getStageDeclaration() {
		return stageDeclaration;
	}

	public void setStageDeclaration(StageDeclaration stageDeclaration) {
		this.stageDeclaration = stageDeclaration;
	}

}
